package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 应用资源申请
 * 数据库表名：bus_application_resource
 */
@Data
@TableName("bus_application_resource")
public class BusApplicationResource implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @NotNull(message = "主键id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("apply_time")
    @Schema(description = "用户提交申请时间")
    private LocalDateTime applyTime;

    @TableField("clinic_name")
    @Size(max = 200, message = "诊所名称长度不能超过200")
    @Length(max = 200, message = "诊所名称长度不能超过200")
    @Schema(description = "诊所名称")
    private String clinicName;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @TableField("del_flag")
    @Schema(description = "删除标志（0存在 1删除）")
    private Integer delFlag;

}
